package com.atguigu.service;


import com.atguigu.pojo.Book;
import com.atguigu.service.impl.BookServiceImpl;
import org.junit.jupiter.api.Test;

import java.math.BigDecimal;

class BookServiceTest {
    private BookService bookService = new BookServiceImpl();

    @Test
    void addBook() {
        bookService.addBook(new Book(null,"这个世界好奇怪","张三",new BigDecimal(99),48648,44,null));
    }

    @Test
    void deleteBookById() {
        bookService.deleteBookById(23);
    }

    @Test
    void updateBook() {
        bookService.updateBook(new Book(null,"这个世界真好","张三",new BigDecimal(99),9578,45,null));
    }

    @Test
    void queryBookById() {


    }

    @Test
    void queryBooks() {
    }
}